package com.fqgj.xjd.user.dao;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.BaseMapper;
import com.fqgj.xjd.user.entity.UserKycDocumentEntity;
import com.fqgj.xjd.user.entity.business.UserKycStatisticsEntity;

import java.util.Date;
import java.util.List;

/**
 * User: zsp
 * Date: 2018-10-24
 * Time: 16:29:20.760
 */
public interface UserKycDocumentDao extends BaseMapper<UserKycDocumentEntity> {

    /**
     * 获取没有经过人脸识别的用户kyc列表
     */
    List<UserKycDocumentEntity> selectNoFaceRecognitionKycList(Integer limitSearch);

    /**
     * 获取userCode
     *
     * @param userCode
     * @return
     */
    UserKycDocumentEntity selectByUserCode(String userCode);

    /**
     * 获取没有经过识别的家庭照
     */
    List<UserKycDocumentEntity> selectNoScanSelfieList(Integer limitSearch);

    /**
     * 分页查询
     *
     * @param page
     * @param date
     * @return
     */
    List<UserKycDocumentEntity> selectListByPage(Page page, Date date);

    int updateUserKycDocumentEntity(String userCode, Integer authType, Integer status, String cardFrontUrl, String cardBackUrl, String handHoldUrl);

    /**
     * kyc 调用量统计
     *
     * @param authType
     * @param startDate
     * @param endDate
     * @return
     */
    List<UserKycStatisticsEntity> selectUserKycStatistics(String authType, Date startDate, Date endDate);
}